package com.crm.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 票证
 * </p>
 *
 * @author zjd
 * @since 2021-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_ticket")
@ApiModel(value="Ticket对象", description="票证")
public class Ticket extends Model {

    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "记录名称")
    private String name;

    @ApiModelProperty(value = "通道")
    private Long pipeline;

    @ApiModelProperty(value = "票证状态")
    private Long ticketStatus;

    @ApiModelProperty(value = "票证描述")
    private String ticketDescription;

    @ApiModelProperty(value = "来源")
    private Long source;

    @ApiModelProperty(value = "所属用户id")
    private Long ownerUserId;

    @ApiModelProperty(value = "优先级")
    private Long priority;

    @ApiModelProperty(value = "公司id")
    private Long companyId;

    @ApiModelProperty(value = "创建用户")
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Long isDelete;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Long version;
    

    @ApiModelProperty(value = "关联公司交易 加入时间线")
    private Long associateCompany;

    @ApiModelProperty(value = "关联时间")
    private Date associateCompanyDay;

    @ApiModelProperty(value = "关联联系人交易加入时间线")
    private Long associateContact;

    @ApiModelProperty(value = "关联时间")
    private Date associateContactDay;


}
